﻿<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp" %>
<%@ include file="/WEB-INF/views/include/head.jsp" %>
<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>城市交通信号控制系统</title>
    <link href="${ctxStatic}/common/images/logo.ico" rel="shortcut icon" type="image/x-icon" />
    <script type="text/javascript">
        $(function () {
            //顶部导航切换
            $(".nav li a").click(function () {
                $(".nav li a.selected").removeClass("selected")
                $(this).addClass("selected");
            })
        })
    </script>
</head>
<body style="padding-top: 70px">
<nav class="navbar navbar-default  navbar-fixed-top">
    <div class="container"> <%--container居中 container-fluid自适应--%>
        <div class="navbar-header">
            <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a class="navbar-brand" href="#">管理系统</a>
        </div>

        <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
            <ul class="nav navbar-nav">
                <c:forEach items="${fns:getMenuList()}" var="menu" varStatus="idxStatus">
                    <c:if test="${menu.parent.id eq 0&&menu.showSign eq '1'}">
                        <li><a href="${ctx}${menu.href}?parentId=${menu.id}" target="frameMain">
                            ${menu.name}</a></li>
                    </c:if>
                </c:forEach>
            </ul>
            <ul class="nav navbar-nav navbar-right">
                <li><a href="${ctx}/logout">退出</a></li>
            </ul>
        </div>
    </div>
</nav>
<div class="frameMain">
    <iframe id="frameMain" src="" name="frameMain"> </iframe>
</div>
</body>
</html>
